package byx.container.annotation.demo.PipeDemo;

import byx.container.annotation.annotation.Register;
import java.util.List;

@Register
public class StringProcessor {
    private final List<Processor> processors;

    public StringProcessor(List<Processor> processors) {
        this.processors = processors;
    }

    public String process(String input) {
        for (Processor p : processors) {
            input = p.process(input);
        }
        return input;
    }
}
